<template>
  <nav class="nav">
    <router-link to="/">Go to dataBoard</router-link>
    <router-link to="/tent">Go to tent</router-link>
  </nav>

  <router-view />
</template>

<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
body{
  margin: 0;
  padding: 0;
}
/* 添加一些基本样式 */
.nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #333;
  padding: 10px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  a {
    color: #fff;
  }
  .router-link-active {
    color: #42b983;
  }
}

/* 样式链接 */
.router-link {
  text-decoration: none;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

/* 鼠标悬停时改变背景颜色 */
.router-link:hover {
  background-color: #555;
}

</style>
<script setup lang="ts">

</script>